<?php

class Empeval_Methods_Data_Role {
	
	public $code;
	public $type;
	public $name;
	
	public function __construct(EmpevalRoles $role) {
		$this->code = $role->getCode();
		$this->type = $role->getType();
		if (Empeval_Core::getInstance()->getApp()->lang == 'pl')
			$this->name = $role->getNamePl();
		else
			$this->name = $role->getNameEn();
	}
	
}